package thread.queue;

/**
 * Created by xu on 2021/12/5.
 */
public class Consumer implements Runnable{

    private Store store;

    public Consumer(Store store) {
        this.store = store;
    }

    @Override
    public void run() {
        while (true){

            try {
                store.consume();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
